# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-munge
_pkgname=munge
pkgver=1.4.0
pkgrel=1
pkgdesc='Data manipulation client / library.'
arch=('any')
url='https://pypi.org/project/munge/#files'
license=('Apache')
depends=('python')
makedepends=('python-build' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('dc5540bf8ba256d83c07912f9ae8f2ceb5099a0bbfae8ee13770adc8dbea817374c93b6c266b51434179e31f3553b07f874eaea6a159c28b63a2bc8246251911')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

	pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

